<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				height: 300px;
				line-height: 300px;
				background-color: orange;
			}
			.box .small {
				display: inline-block;
				background-color: #f00;
				height: 80px;
				/* 行高继承, 会导致文字和盒子分离的效果 */
				/* line-height: 80px; */
				/* font-size: 40px; */
			}
		</style>
	</head>
	<body>
		<div class="box">
			普通文本
			<span class="small">asdfasdf</span>
		</div>
	</body>
</html>
